package lesson3.example6;

interface Greeting {
  void sayHello(String name);
}

// 需要生成类
class GreetingImpl implements Greeting {
	@Override
	public void sayHello(String name) {
		System.out.println("Hello! " + name);
	}
}

public class Client {
	public static void main(String[] args) {
        Greeting greeting = CGLibDynamicProxy.getInstance().getProxy(GreetingImpl.class);
        greeting.sayHello("Jack");
    }
}